home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pico / makefile.win < prev    next >
Makefile  |  1996-07-12  |  3KB  |  128 lines

  1. # $Id: makefile.win,v 4.18 1996/07/12 19:23:16 mikes Exp $
  2. #
  3. #   Tom Unger
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: tunger@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. #
  27. # Makefile for MS-DOS version of the PINE composer library and 
  28. # stand-alone editor pico.
  29. #
  30. # MSC version of makefile
  31. #
  32. CC=cl
  33. RM=del
  34. CP=copy 
  35. RC = rc
  36.  
  37. # Various Flags
  38. STDCFLAGS=    -nologo -WX -AL -GA -Gt4 -Gy -DANSI -DDOS
  39. #includes mouse support
  40. MOUSE=        -DMOUSE -DEX_MOUSE
  41. #includes optimization
  42. OPTIMIZE=    -O -On -Gs
  43. #includes symbol info for debugging 
  44. CDEBUG=        # -Zi -Od
  45. LDEBUG=        # /CO
  46.  
  47. #
  48. CFLAGS=    $(CDEBUG) $(OPTIMIZE) $(STDCFLAGS) $(NET) $(MOUSE)
  49.  
  50. LFLAGS= $(LDEBUG) /NOD /NOE /ONERROR:NOEXE /stack:32768
  51.  
  52. RCFLAGS =
  53.  
  54. # switches for library building
  55. LIBER=lib
  56. LIBARGS=/NOL -+
  57.  
  58. HFILES=    estruct.h edef.h efunc.h ebind.h pico.h osdep.h mswin.h
  59.  
  60. CFILES=        attach.c basic.c bind.c browse.c \
  61.         buffer.c composer.c display.c file.c fileio.c \
  62.         line.c mswin.c msmem.c osdep.c pico.c random.c region.c \
  63.         search.c msdlg.c msspell.c window.c word.c
  64.  
  65. OFILES=        attach.obj basic.obj bind.obj browse.obj \
  66.         buffer.obj composer.obj display.obj file.obj fileio.obj \
  67.         line.obj mswin.obj msmem.obj osdep.obj pico.obj random.obj \
  68.         region.obj search.obj msdlg.obj msspell.obj window.obj word.obj
  69.  
  70. all:        blddate.exe pico.exe
  71.  
  72. tags:        
  73.     ctags -s -t ..\\TAGS -m -h -p *.h *.c
  74.  
  75.  
  76.  
  77. .c.obj:
  78.     $(CC) -c $(CFLAGS) $(MAKEDIR)\$*.c
  79.     $(LIBER) libpico $(LIBARGS) $*;
  80.  
  81. $(OFILES):    $(HFILES)
  82.  
  83. #
  84. # dependencies for the MS Windows versions of pico and libpico.a
  85. #
  86. osdep.c:    os_win.c dos_gen.h dos_gen.c
  87.         $(RM) osdep.c
  88.         $(CP) os_win.c osdep.c
  89.  
  90. osdep.h:    os_win.h 
  91.         $(RM) osdep.h
  92.         $(CP) os_win.h osdep.h
  93.  
  94.  
  95. libpico.lib:    osdep.c osdep.h $(OFILES)
  96. #    del libpico.lib
  97. #    $(LIBER) libpico +attach+basic+bind+browse;
  98. #    $(LIBER) libpico +buffer+composer+display+file+fileio;
  99. #    $(LIBER) libpico +line+mswin+msmem+osdep+pico+random+region;
  100. #    $(LIBER) libpico +search+msspell+window+word;
  101.  
  102.  
  103. main.obj: main.c $(HFILES)
  104.     $(CC) /c $(CFLAGS) main.c
  105.  
  106. mswinver.obj:    mswinver.c
  107.     $(CC) /c $(CFLAGS) mswinver.c
  108.  
  109. mswin.res:  mswin.rc
  110.     $(RC) $(RCFLAGS) -r mswin.rc
  111.  
  112. blddate.exe: blddate.c
  113.     $(CC) blddate.c
  114.  
  115. pico.exe:: main.obj libpico.lib mswin.res $(OFILES) mswinver.obj
  116.     blddate > bdate.c
  117.     $(CC) /c $(CFLAGS) bdate.c
  118.     link $(LFLAGS) @pico-win.lnk
  119.     $(RC) -t -k mswin.res pico.exe 
  120.  
  121. clean:
  122.     $(RM) *.lib
  123.     $(RM) *.obj
  124.     $(RM) mswin.res
  125.     $(RM) osdep.c
  126.     $(RM) osdep.h
  127.  
  128.